(global.webpackJsonp = global.webpackJsonp || []).push([
  ["wjyk_recycle/pages/my/my"], {
    "2c8a": function (t, e, a) {},
    "41ab": function (t, e, a) {
      (function (t) {
        function e(t) {
          return t && t.__esModule ? t : {
            default: t
          };
        }
        a("8163"), e(a("66fd")), t(e(a("def0")).default);
      }).call(this, a("543d").createPage);
    },
    9148: function (t, e, a) {
      a.r(e);
      var n, r = a("f8b1"),
        o = a.n(r);
      for (n in r) "default" !== n && function (t) {
        a.d(e, t, function () {
          return r[t];
        });
      }(n);
      e.default = o.a;
    },
    a003: function (t, e, a) {
      var n = a("2c8a");
      a.n(n).a;
    },
    def0: function (t, e, a) {
      a.r(e);
      var n, r = a("f20a"),
        o = a("9148");
      for (n in o) "default" !== n && function (t) {
        a.d(e, t, function () {
          return o[t];
        });
      }(n);
      a("a003");
      var u = a("f0c5"),
        r = Object(u.a)(o.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
      e.default = r.exports;
    },
    f20a: function (t, e, a) {
      function n() {
        this.$createElement, this._self._c;
      }
      var r = {
          sunuiTabbar: function () {
            return a.e("components/sunui-tabbar/sunui-tabbar").then(a.bind(null, "f6fd"));
          }
        },
        o = [];
      a.d(e, "b", function () {
        return n;
      }), a.d(e, "c", function () {
        return o;
      }), a.d(e, "a", function () {
        return r;
      });
    },
    f8b1: function (t, r, i) {
      (function (n) {
        Object.defineProperty(r, "__esModule", {
          value: !0
        }), r.default = void 0;
        var o = e(i("4795")),
          t = e(i("5438"));

        function e(t) {
          return t && t.__esModule ? t : {
            default: t
          };
        }

        function c(t, e, a, n, r, o, u) {
          try {
            var i = t[o](u),
              c = i.value;
          } catch (t) {
            return a(t), 0;
          }
          i.done ? e(c) : Promise.resolve(c).then(n, r);
        }

        function u(i) {
          return function () {
            var t = this,
              u = arguments;
            return new Promise(function (e, a) {
              var n = i.apply(t, u);

              function r(t) {
                c(n, e, a, r, o, "next", t);
              }

              function o(t) {
                c(n, e, a, r, o, "throw", t);
              }
              r(void 0);
            });
          };
        }
        var a = {
          data: function () {
            return {
              pic_url: this.$imgUrl,
              userInfo: {},
              avatar: this.$imgUrl + "/head-img@3x.png",
              nickName: "用户昵称",
              balance: 0,
              moneyVal: "",
              flag: "",
              collectorstatus: "",
              collectorid: "",
              unit: "",
              receiveCount: "",
              reserveCount: "",
              takeCount: "",
              deliverCount: "",
              robCount: "",
              is_open: null,
              cashInfo: {},
              handleFee: "",
              money: "",
              tabIndex: 0,
              system: {},
              isTransaction: !1
            };
          },
          onShow: function () {
            this.systems(), this.getPluginList(), t.default.releaseKey("submit"), this.unit = n.getStorageSync("name"),
              n.getStorageSync("uid") && this.user();
              console.log(n,'nnnnnnnnnnnnnnn')
          },
          onLoad: function (t) {
            this.tabIndex = t.index;
            console.log(n,'nnnnnnnnnnnnnnn')
          },
          methods: {
            handleContact (e) {
              console.log(e.detail.path)
              console.log(e.detail.query)
          },
            getPluginList: function () {
              var r = this;
              return u(o.default.mark(function t() {
                var e, a, n;
                return o.default.wrap(function (t) {
                  for (;;) switch (t.prev = t.next) {
                    case 0:
                      return t.next = 2, r.$http({
                        url: r.$api.pluginList
                      });

                    case 2:
                      if (0 == (e = t.sent).errno)
                        for (a = e.data, n = 0; n < a.length; n++) "wjyk_recycle_plugin_transactions" == a[n].identifie && 2 == a[n].is_open && (r.isTransaction = !0);

                    case 4:
                    case "end":
                      return t.stop();
                  }
                }, t);
              }))();
            },
            transaction: function () {
              n.getStorageSync("uid") ? n.switchTab({
                url: "/wjyk_recycle/pages/transaction/index/index"
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            packingStation: function () {
              n.getStorageSync("uid") ? n.navigateTo({
                url: "../pack-station-login/pack-station-login"
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            cityPartner: function () {
              n.getStorageSync("uid") ? (1 == this.userInfo.partnerstatus && n.navigateTo({
                url: "../apply-settle/apply-settle?name=partner"
              }), 2 == this.userInfo.partnerstatus && (2 == this.userInfo.partnerfreeze ? this.$sun.toast("该合伙人已冻结，请联系管理员") : n.navigateTo({
                url: "../city-partner-center/city-partner-center?partnerid=" + this.userInfo.partnerid
              })), "" == this.userInfo.partnerstatus && n.navigateTo({
                url: "../city-partner/city-partner"
              })) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            withdrawal: function (t) {
             
              n.getStorageSync("uid") ? n.navigateTo({
                url: "/wjyk_recycle/pages/my/withdrawal/withdrawal?type=" + t + "&balance=" + this.balance + "&unit=" + this.unit + "&uid=" + n.getStorageSync("uid")
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            personMessage: function () {
              n.getStorageSync("uid") ? n.navigateTo({
                url: "../person-message/person-message"
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            exchangeOrder: function (t) {
              console.log("点击了兑换订单"), n.getStorageSync("uid") ? n.navigateTo({
                url: "../redeem-order/redeem-order?index=" + t
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            shareMoney: function () {
              n.getStorageSync("uid") ? n.navigateTo({
                url: "../share-money/share-money"
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            address: function () {
              n.getStorageSync("uid") ? (n.setStorageSync("addressName", "my"), n.navigateTo({
                url: "../address/address"
              })) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            withdrawalRecord: function () {
              var t = n.getStorageSync("uid");
              n.navigateTo({
                url: "../withdrawal-record/withdrawal-record?id=" + t + "&index=1"
              }), this.closeDialog();
            },
            recycleOrder: function (t) {
              console.log("index", t), n.getStorageSync("uid") ? n.navigateTo({
                url: "../recycle-order/recycle-order?index=" + t
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            recycleRegularly: function () {
              n.getStorageSync("uid") ? n.navigateTo({
                url: "../recycle-regularly/recycle-regularly"
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            becomeRecycler: function () {
              n.getStorageSync("uid") ? (1 == this.collectorstatus && n.navigateTo({
                url: "../apply-settle/apply-settle?name=recycler"
              }), 2 == this.collectorstatus && (2 == this.userInfo.collectorfreeze ? this.$sun.toast("该回收员已冻结，请联系管理员") : n.navigateTo({
                url: "../recycle-center/recycle-center?collectorid=" + this.collectorid
              })), "" == this.collectorstatus && n.navigateTo({
                url: "../become-recycler/become-recycler"
              })) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            aboutUs: function () {
              n.navigateTo({
                url: "../about-us/about-us"
              });
            },
            controllerLogin: function () {
              n.getStorageSync("uid") ? n.navigateTo({
                url: "/wjyk_recycle/packages/index/login/login"
              }) : n.navigateTo({
                url: "../auth/auth"
              });
            },
            user: function () {
              var a = this;
              return u(o.default.mark(function t() {
                var e;
                return o.default.wrap(function (t) {
                  for (;;) switch (t.prev = t.next) {
                    case 0:
                      return t.next = 2, a.$http({
                        url: a.$api.user,
                        data: {
                          uid: n.getStorageSync("uid")
                        }
                      });

                    case 2:
                      0 == (e = t.sent).errno && (a.userInfo = e.data, a.avatar = e.data.avatar, a.nickName = e.data.nickname,
                        a.balance = e.data.balance, a.flag = e.data.flag, a.collectorstatus = e.data.collectorstatus,
                        a.collectorid = e.data.collectorid, a.receiveCount = e.data.receiveCount, a.reserveCount = e.data.reserveCount,
                        a.takeCount = e.data.takeCount, a.deliverCount = e.data.deliverCount, a.robCount = e.data.robCount,
                        a.is_open = e.data.is_open), console.log("用户信息", e, a.avatar, a.nickName);

                    case 5:
                    case "end":
                      return t.stop();
                  }
                }, t);
              }))();
            },
            commissionSet: function () {
              var a = this;
              return u(o.default.mark(function t() {
                var e;
                return o.default.wrap(function (t) {
                  for (;;) switch (t.prev = t.next) {
                    case 0:
                      return t.next = 2, a.$http({
                        url: a.$api.commissionSet,
                        data: {
                          type: 1
                        }
                      });

                    case 2:
                      0 == (e = t.sent).errno && (a.cashInfo = e.data, console.log("提现设置", e));

                    case 4:
                    case "end":
                      return t.stop();
                  }
                }, t);
              }))();
            },
            systems: function () {
              var a = this;
              return u(o.default.mark(function t() {
                var e;
                return o.default.wrap(function (t) {
                  for (;;) switch (t.prev = t.next) {
                    case 0:
                      return t.next = 2, a.$http({
                        url: a.$api.system
                      });

                    case 2:
                      0 == (e = t.sent).errno && (a.system = e.data, console.log("系统设置", e, e.data.name));

                    case 4:
                    case "end":
                      return t.stop();
                  }
                }, t);
              }))();
            }
          }
        };
        r.default = a;
      }).call(this, i("543d").default);
    }
  },
  [
    ["41ab", "common/runtime", "common/vendor"]
  ]
]);